package com.ruoyi.second.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 小区成交记录对象 community_transaction
 * 
 * @author ruoyi
 * @date 2025-09-12
 */
public class CommunityTransaction extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 成交记录ID */
    private Long id;

    /** 小区ID */
    @Excel(name = "小区ID")
    private Long communityId;

    /** 成交价格 */
    @Excel(name = "成交价格")
    private BigDecimal price;

    /** 面积 */
    @Excel(name = "面积")
    private BigDecimal area;

    /** 成交日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "成交日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date transactionDate;

    /** 户型 */
    @Excel(name = "户型")
    private String houseType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setCommunityId(Long communityId) 
    {
        this.communityId = communityId;
    }

    public Long getCommunityId() 
    {
        return communityId;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setArea(BigDecimal area) 
    {
        this.area = area;
    }

    public BigDecimal getArea() 
    {
        return area;
    }

    public void setTransactionDate(Date transactionDate) 
    {
        this.transactionDate = transactionDate;
    }

    public Date getTransactionDate() 
    {
        return transactionDate;
    }

    public void sethouseType(String houseType) 
    {
        this.houseType = houseType;
    }

    public String gethouseType() 
    {
        return houseType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("communityId", getCommunityId())
            .append("price", getPrice())
            .append("area", getArea())
            .append("transactionDate", getTransactionDate())
            .append("houseType", gethouseType())
            .append("createTime", getCreateTime())
            .toString();
    }
}
